package poo.esempi;

import java.util.Arrays;

public class bit {
	private static int cont=0;

	public static void main(String[] args) {
		
		disp(2);

	}

	public static void disp(int n) {
		assert n > 0;
		int[] a = new int[n];
		disp(a, 0);
		System.out.println(cont);
	}

	private static void disp(int[] a, int i) {
		for (int j = 0; j <= 1; j++) {
			a[i] = j;
			if (i == a.length - 1){
				cont++;
				System.out.println(Arrays.toString(a));
			}
			else
				disp(a, i + 1);
		}

	}

}
